package com.simple.structure.bridge;

/**
 * @author simple
 * @version 1.0
 * @date 2018-12-25 15:56
 * @since 1.0
 */
public class Start {
    public static void main(String[] args) {
        Bridge bridge = new MyBridge();
        //
        Sourceable source1 = new SourceSub1();
        bridge.setSource(source1);
        bridge.method();
        //
        Sourceable source2 = new SourceSub2();
        bridge.setSource(source2);
        bridge.method();
    }
}
